const mutationTypes = {
    SET_DIC: 'setDic'
  },
  actionTypes = {
    SET_DIC: 'setDic'
  },
  gettersTypes = {
    GET_DIC: 'getDic'
  },
  // 状态
  state = {
  },
  mutations = {
    [mutationTypes.SET_DIC] (state, msg = {}) {
      state[msg.type] = msg.value;
    }
  },
  actions = {
    [actionTypes.SET_DIC] ({ commit }, msg) {
      commit(mutationTypes.SET_DIC, msg);
    }
  },
  getters = {
    [gettersTypes.GET_DIC] (state) {
      return state;
    }
  };

export default {
  namespaced: true,
  state,
  mutationTypes,
  actionTypes,
  gettersTypes,
  mutations,
  actions,
  getters
};
